package com.ly.hotel.adaptor;

import com.ly.hotel.common.MyApplication;

public class SoftwareProperty {
	public static final int WEB_VOD 	= 1;
	public static final int WEB_INTRO 	= 2;
	public static final int WEB_YOUHUI	= 3;
	public static final int WEB_HELP 	= 4;
	public static final int WEB_MUSIC 	= 5;
	
	/* 
	 * 用来获取是否支持采用web的方式显示页面*/
	public static boolean isSupportWebPage(int type){
		boolean rv = false;
		
		switch (type) {
		case WEB_VOD:
			/*if(Build.BOARD.endsWith(Constants.BOARD_TYPE_ADA628_NAME) || Build.BOARD.endsWith(Constants.BOARD_TYPE_S905_NAME)
					 || Build.BOARD.endsWith(Constants.BOARD_TYPE_MSM8974_NAME)){
				rv = true;
			}*/
			
			if(MyApplication.isSupportRemote){
				rv = true;
			}
			break;
		case WEB_MUSIC:
			/*if(Build.BOARD.endsWith(Constants.BOARD_TYPE_ADA628_NAME) || Build.BOARD.endsWith(Constants.BOARD_TYPE_S905_NAME)
					 || Build.BOARD.endsWith(Constants.BOARD_TYPE_MSM8974_NAME)){
				rv = true;
			}*/
			
			if(MyApplication.isSupportRemote){
				rv = true;
			}
			break;
		default:
			break;
		}
		
		return rv;
	}
}
